<%@ page import="service.Reservation" %>



<div class="fieldcontain ${hasErrors(bean: reservationInstance, field: 'dateBegSession', 'error')} required">
	<label for="dateBegSession">
		<g:message code="reservation.dateBegSession.label" default="Date Beg Session" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dateBegSession" precision="day"  value="${reservationInstance?.dateBegSession}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: reservationInstance, field: 'dateEndSession', 'error')} required">
	<label for="dateEndSession">
		<g:message code="reservation.dateEndSession.label" default="Date End Session" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dateEndSession" precision="day"  value="${reservationInstance?.dateEndSession}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: reservationInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="reservation.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${reservationInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: reservationInstance, field: 'room', 'error')} required">
	<label for="room">
		<g:message code="reservation.room.label" default="Room" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="room" name="room.id" from="${service.Room.list()}" optionKey="id" required="" value="${reservationInstance?.room?.id}" class="many-to-one"/>
</div>

